$(function() {

    $('#pickscheduleform').dialog({
        autoOpen: false,
        height: 150,
        width: 575,
        modal: true,
        buttons: {
            'Show Invoices': function() {
                $(this).dialog('close');
                $("#pickinvoicestartmonth").submit();
            },
            Cancel: function() {
                $(this).dialog('close');
            }

        },
        close: function() {

        }
    });

    $('#uploadnetexform').dialog({
        autoOpen: false,
        height: 200,
        width: 435,
        modal: true,
        buttons: {
            'Upload': function() {
                $(this).dialog('close');
                $("#uploadnetexfile").submit();
            },
            Cancel: function() {
                $(this).dialog('close');
            }

        },
        close: function() {

        }
    });

//    $('#pick_sched').click(function() {
//        $('#pickscheduleform').dialog('open');
//    });
});

function pickSched(whichFeeRun) {
    $('#pickFeeRunID').val(whichFeeRun);
    $('#pickscheduleform').dialog('open');
}

function pickValuedateMonth() {
    $('#pickvaluedateform').dialog('open');
}

function promptForNetExFile() {
    $('#uploadnetexform').dialog('open');
}
